<template>
  <div class="app-container home">
    <div class="box">
      <div ref="vantaRef" style="width: 100%; height:550px;margin-top: 10px;"></div>
      <div class="banner">
        <h1>非遗札礼</h1>
        <h2 style="color: black;margin-left:20px;">
          &ensp;&ensp;FEI&ensp;&ensp;&ensp;YI&ensp;&ensp;&ensp;&ensp;ZHA&ensp;&ensp;&ensp;&ensp;&ensp;LI
        </h2>
        <h3 style="color: black;margin-left:20px;">
          —— 你的拾遗图鉴与社区
        </h3>
      </div>
    </div>
  </div>
</template>

<script>
import * as THREE from "three";
import NET from "vanta/src/vanta.net";

export default {
  data() {
    return {};
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    }
  },
  mounted() {
    this.vantaEffect = NET({
      el: this.$refs.vantaRef,
      THREE: THREE,
    });
    VANTA.NET({
      el: this.$refs.vantaRef,
      /*以下为样式配置*/
      mouseControls: true,
      touchControls: true,
      gyroControls: false,
      minHeight: 200.0,
      minWidth: 200.0,
      scale: 1.0,
      scaleMobile: 1.0,
      color: 0xea0000,
      backgroundColor: 0x0,
      points: 13.0,
      maxDistance: 21.0,
      spacing: 16.0,
    });
  },
  beforeDestroy() {
    if (this.vantaEffect) {
      this.vantaEffect.destroy();
    }
  },
};
</script>

<style scoped lang="scss">
.home {
  blockquote {
    //padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
.box {
  height: 100vh;
  position: relative;
  .banner {
    z-index: 999;
    position: absolute;
    top: 33%;
    left: 10%;
    color: #fff;
  }
}
h1 {
  font-size: 88px;
}
p {
  color: #A7090A;
  margin-top: 60px;
  font-size: 18px;
}
</style>

